package com.yourenbang.transaction.api.model.dto.manage;

import com.yourenbang.lingyun.core.util.json.ToJSON;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class TopupSysAccountDTO implements Serializable, ToJSON {
    /**
     * 资金接收方fundAccountId
     */
    @NotNull(message = "资金账号ID格式错误")
    private Integer fundAccountId;

    @DecimalMin(value = "10.0",inclusive = false,message = "充值金额参数错误,且不能低于10元")
    private BigDecimal topupAmount;

}
